﻿
@{    
    List<Pro_LandModel> lstLand = ViewBag.lstLand != null ? (List<Pro_LandModel>)ViewBag.lstLand : new List<Pro_LandModel>();
    }



        <marquee behavior="scroll" scrollamount="2" direction="up" height="200px" onmouseover="this.stop()" onmouseout="this.start()">
           
           @{
               foreach (var item in lstLand)
               {
                   var imgurl = "../../Content/Image/slide/slide-1.jpg";
                   if(item.LandImage != string.Empty)
                   {
                       imgurl = "../Uploads/"+ item.LandImage;
                   }
                   
                   <div class="left_item" onclick="openLandDetail('@item.url');">
                        <div class="iteml_img"><img src="@imgurl" width="180px;" /></div>
                        <div class="iteml_title">@item.LandName</div>
                    </div>
               }
               }

        </marquee>


        <script type="text/javascript">
            function openLandDetail(url) {
                window.location = "/san-giao-dich/" + url;
            }

        </script>